#simple makefile for the Solo Solitaires proyect.

CC = gcc
CFLAGS = -I/usr/include/SDL -D_REENTRANT -g
LDFLAGS = -L/usr/lib -lSDL -lpthread -lSDL_image -g


all: solo.o graphics.o
	$(CC) $(LDFLAGS) solo.o graphics.o -o solo
solo.o: globals.h
	$(CC) $(CFLAGS) -c solo.c
graphics.o: globals.h graphics.h
	$(CC) $(CFLAGS) -c graphics.c
clean:
	rm *.o solo
